package com.zjs.server.mongodb;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;

@SpringBootApplication
@EnableDiscoveryClient(autoRegister = true)  //参数默认是是true，设置为false,就不自动向注册中心去注册
public class ServerMongoDB {
    public static void main(String[] args) {
        SpringApplication.run(ServerMongoDB.class,args);
        System.out.println("mongoDB服务启动完成");

    }
}
